package com.geekaca.d2.homework;

import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {


        System.out.print("请输入您的年龄:");
        Scanner myScanner = new Scanner(System.in);
        int myAge = myScanner.nextInt();
        if (myAge >= 18) {
            System.out.println("您已成年");
        } else {

            System.out.println("您未成年");

        }

    }

}
